package org.smile.homework01.kevin.MemberCard;

import java.util.Scanner;

public class MemberCard implements CreatCard{  //会员卡具体对象
private String id;
private String name;
private String description;
Scanner in = new Scanner(System.in);
public MemberCard(String id){
    this.id = id;
    System.out.println("请输入会员姓名：");
    name = in.next();
    System.out.println("请输入详情：");
    description = in.next();
}
public String getId(){
    return id;
}
public String getName(){
    return name;
}
public String getDescription(){
    return description;
}

@Override
    public void print(){
    System.out.println("会员卡ID：" + id + "\n" + "会员姓名：" + name + "\n" + "详情：" + description);
}
}
